package com.fahai.web.service;

import com.fahai.common.PageVo;
import com.fahai.web.entity.SysUser;
import com.fahai.web.entity.UserRole;

import java.util.List;

/**
 * Created by sky on 17/5/10.
 */
public interface SysUserService {
    public SysUser findUserInfo(String username);

    /**
     * 查询用户列表
     * @param vo
     * @param pageVo
     * @return
     */
    public PageVo findSysUserList(SysUser vo, PageVo pageVo);
    public SysUser findSysUserByUserName(String userName);
    public void updateSysUser(SysUser su);
    public void saveSysUser(SysUser su);
    public int  accountCount(SysUser sysUser);
    public List<UserRole> findAllUserRole();

    //分页查询用户列表
    public PageVo selectUserList(PageVo pageVo);

    //查询账户是否已经存在
    public Long selectUserByNameCount(String userName);




}
